package com.balloon.springboot.system.router.vo;

import lombok.Data;

import java.util.List;

/**
 * 路由转前端树结构实体类
 *
 * @author liaofuxing
 * @E-mail liaofuxing@outlook.com
 * @date 2019/08/09 15:26
 */
@Data
public class Router2TreeVO {

    /**
     * 树id
     */
    private Integer id;

    /**
     * 菜单名
     */
    private String label;

    /**
     * 父级id
     */
    private Integer parent;

    /**
     * 子级树
     */
    private List<Router2TreeVO> children;

    public Router2TreeVO() {

    }

    public Router2TreeVO(Integer id, String label, Integer parent) {
        this.id = id;
        this.label = label;
        this.parent = parent;
    }
}
